package ua.net.gm.server.walker;

import ua.net.gm.server.primitives.Point;

/**
 *
 * @author Yason
 */
public class WalkerTeleport implements IWalkerMove
{
    private final int x, y;

    public WalkerTeleport(int x, int y)
    {
        this.x = x;
        this.y = y;
    }

    public int getX()
    {
        return x;
    }

    public int getY()
    {
        return y;
    }

    @Override
    public Point getNextPosition(IWalker walker)
    {
        return new Point(x, y);
    }
}
